package com.neu;

import java.io.Serializable;
import java.util.List;

/**
 * @author ：lychallengers@gmail.com
 * @date ：2021/1/10 14:38
 */
public class DBResult implements Serializable{
    private static final long serialVersionUID = 2797901327435119144L;
    double exeTime;
    List<String> columnName;
    List<List<String>> result;
    int r;
    DBResult(int r){
        this.r=r;
    }
    DBResult(int r,double exeTime){
        this.exeTime=exeTime;
        this.r=r;
    }
    DBResult(int r,List<String> columnName,List<List<String>> result,double exeTime){
        this.r=r;
        this.columnName=columnName;
        this.result=result;
        this.exeTime=exeTime;
    }
    public int getColumnCount(){
        return columnName.size();
    }
    public double getTime(){
        return exeTime;
    }
    public int getRowCount(){
        return result.size();
    }
}
